package com.to8to.autotask.newlundan.entity;

import java.util.Map;

import org.elasticsearch.common.collect.Maps;

import com.to8to.autotask.util.TwoTuple;

/**
 * LundanConfig.java
 * 作 者：atom.liu
 * 版 本：v2.0
 * 日 期：2014年12月26日
 * 描 述：轮单配置表。
 */
public class LundanConfig
{
    /**
     * 得分权重
     */
    public static final Map<String, Double> SCORE_WEIGHT = Maps.newHashMap();

    /**
     * 装修公司信用等级
     */
    public static final Map<Integer, TwoTuple<Integer, Integer>> XINYONG_LEVEL = Maps.newHashMap();;

    /**
     * 普通公司轮单所需最少费用
     */
    public static final int MIN_BALANCE = 198;

    /**
     * A类公司轮单所需最少费用
     */
    public static final int MIN_BALANCE_CLASSA = 298;

    static
    {
        SCORE_WEIGHT.put("beeline", 0.2);
        SCORE_WEIGHT.put("gongdi", 0.15);
        SCORE_WEIGHT.put("style", 0.05);
        SCORE_WEIGHT.put("koubei", 0.2);
        SCORE_WEIGHT.put("zhongbiao", 0.1);
        SCORE_WEIGHT.put("pzhongbiao", 0.1);
        SCORE_WEIGHT.put("monthlylimit", 0.2);

        XINYONG_LEVEL.put(1, TwoTuple.newInstance(0, 10));
        XINYONG_LEVEL.put(2, TwoTuple.newInstance(11, 50));
        XINYONG_LEVEL.put(3, TwoTuple.newInstance(51, 250));
        XINYONG_LEVEL.put(4, TwoTuple.newInstance(251, 500));
        XINYONG_LEVEL.put(5, TwoTuple.newInstance(501, 1000));
        XINYONG_LEVEL.put(6, TwoTuple.newInstance(1001, 2000));
        XINYONG_LEVEL.put(7, TwoTuple.newInstance(2001, 3250));
        XINYONG_LEVEL.put(8, TwoTuple.newInstance(3251, 5000));
        XINYONG_LEVEL.put(9, TwoTuple.newInstance(5001, 7000));
        XINYONG_LEVEL.put(10, TwoTuple.newInstance(7001, 10000));

    }

}
